package plus.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author zhangfei
 */
@RestController
public class UserController {


    @GetMapping("/getUser/{id}")
    public Map<String, Object> getUser(@PathVariable Integer id) {
        HashMap<String, Object> userInfo = new HashMap<>();
        userInfo.put("userName", "帅逼阿飞");
        userInfo.put("age", "18");

        return userInfo;
    }


}
